ContentInfoCompat

Holds all the relevant data for a request to OnReceiveContentListener. This is a backward-compatible wrapper for the platform class ContentInfo.

Types

Link copied to clipboard
class Builder
Builder for ContentInfoCompat.
Link copied to clipboard
Flags to configure the insertion behavior.
Link copied to clipboard
Specifies the UI through which content is being inserted.

Properties

Link copied to clipboard
Flag requesting that the content should be converted to plain text prior to inserting.
Link copied to clipboard
val SOURCE_APP: Int = 0
Specifies that the operation was triggered by the app that contains the target view.
Link copied to clipboard
Specifies that the operation was triggered by the autofill framework.
Link copied to clipboard
Specifies that the operation was triggered by a paste from the clipboard (e.g.
Link copied to clipboard
Specifies that the operation was triggered by the drag/drop framework.
Link copied to clipboard
Specifies that the operation was triggered from the soft keyboard (also known as input method editor or IME).
Link copied to clipboard
Specifies that the operation was triggered by a result from a PROCESS_TEXT action in the selection menu.

Functions

Link copied to clipboard
The data to be inserted.
Link copied to clipboard
Optional additional metadata.
Link copied to clipboard
open fun getFlags(): Int
Optional flags that control the insertion behavior.
Link copied to clipboard
open fun getLinkUri(): Uri
Optional http/https URI for the content that may be provided by the IME.
Link copied to clipboard
open fun getSource(): Int
The source of the operation.
Link copied to clipboard
Partitions this content based on the given predicate.
Partitions content based on the given predicate.
Link copied to clipboard
Provides the ContentInfo represented by this object.
Link copied to clipboard
Provides a backward-compatible wrapper for ContentInfo.
Link copied to clipboard
open fun toString(): String